// components/nav-bar/nav-bar.js
const app = getApp()

Component({
  options: {
    multipleSlots: true // 在组件定义时的选项中启用多slot支持
  },
  properties: {
    title: {
      type: String,
      value: "导航标题",
    },
  },

  data: {
    statusHeight: 20,
  },

  methods: {
    onLeftClick() {
      this.triggerEvent("leftclick");
    },
  }
})